package org.example.spring_book.service;

import org.example.spring_book.mapper.UserInfoMapper;
import org.example.spring_book.model.UserInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * @ClassName UserService
 * @Description TODO
 * @Author wangxiaodong
 */
@Service
public class UserService {
    @Autowired
    private UserInfoMapper userInfoMapper;

    public UserInfo queryByName(String userName){
        return userInfoMapper.queryByname(userName);
    }
}
